<%@ page language="java" import="java.util.*"  pageEncoding="utf-8"  contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/meta.jsp"%>
<%@ include file="/commons/easyUI.jsp" %>
<html>
<head>
	<title>库存领用管理</title>
	<script type="text/javascript" src="./js/action/useoffices.js"></script>
</head>
<body style="margin:-20px">
	<!-- 使用 javascript 创建数据网格（datagrid） -->
	<table id="useoffices_table" > 
   
	</table> 
	
	
	<!-- 在 <div> 标签内定义工具栏 -->
	<div id="tb">
		<div>
			<a href="javascript:openAdduseofficeDialog()" class="easyui-linkbutton"  data-options="iconCls:'icon-add',plain:true" >办公用品领取登记</a>
		</div>
		<div>
			&nbsp;领用人：&nbsp;<input type="text"  id="user1"  size="20" onkeydown="if(event.keyCode==13) searchuseoffice()"/>
			<a href="javascript:searchuseoffice()" class="easyui-linkbutton"  data-options="iconCls:'icon-search',plain:true" >搜索</a>
		</div>
	</div>
	
	
	<!-- 
	新增记录
	-->
	<div id="adduseofficeDlg" class="easyui-dialog" style="width: 450px;height:250px;padding: 10px 20px" data-options="closed:true,buttons:'#adduseofficeDlg-buttons'">
	 	<form id="adduseofficeFm" method="post">
	 		<table data-options="cellspacing:8px" >
	 			<tr>
	 				<td>领用人：</td>
	 				<!--<select id="officeUser" name="userId">  
						<option>aitem1</option>  
						<option>bitem2</option>  
						<option>bitem3</option>  
						<option>ditem4</option>  		  
						<option>eitem5</option>  
					</select>  
					<select id="officeId" name="officeId">  
						<option>aitem1</option>  
						<option>bitem2</option>  
						<option>bitem3</option>  
						<option>ditem4</option>  		  
						<option>eitem5</option>  
					</select> 
	 				--><td><input class="easyui-combobox"  id="userId"  name="useOfficeDto.userId"  type="text" required="required" style="width:300px;height:30px;" /></td>
	 			</tr>  
	 			<tr>
	 				<td>用品名称：</td>
	 				<td><input class="easyui-combobox"  id="officeId" name="useOfficeDto.officeId"  required="prompt:'请输入要引用的办公用品名称 '"  style="width:300px;height:30px;"/></td>
	 			</tr>
	 			<tr>
	 				<td>数量：</td>
	 				<td><input id="count"  class="easyui-textbox"  name="useOfficeDto.count"  type="text" required="required" style="width:300px;height:30px;" /></td>
	 			</tr> 
	 			<tr>
	 				<td>领用时间：</td>
	 				<td><input id="time"  class="easyui-datetimebox"  name="useOfficeDto.time"  type="text" style="width:300px;height:30px;" /></td>
	 			</tr> 
	 		</table>
	 	</form>
	</div>
	<div id="adduseofficeDlg-buttons">
			<a href="javascript:adduseoffice()" class="easyui-linkbutton"  data-options=" iconCls:'icon-ok'">提交</a>
			<a href="javascript:closeAdduseofficeDlg()"  class="easyui-linkbutton"  data-options=" iconCls:'icon-cancel'">取消</a>
	</div>
</body>
</html>